﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebPromenadebyenTabeller;
using PromPersonerDB;


namespace WebApptest
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
    
            List<ViewPersoner> listViewPersoner = PromViewPersonerDB.PromGatewayViewPersoner.FindAlleViewPersoner();
            
            foreach (ViewPersoner item in listViewPersoner)
            {
             
                var ting = "" + item.personID + " " + item.navnperson + "   " + item.Navnbyg + "   " + item.adresse + "   " + item.Nummer + ", " + item.Sal + " " + item.Side + "   " + item.postnr + " " + item.bynavn +"<br />";
                var arrangementerhtml = new LiteralControl(ting);
                PHAllePersoner.Controls.Add(arrangementerhtml);        
            }
        }


    }
}